package com.sk.bilibili.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sk.bilibili.annotation.DefaultValue;
import com.sk.bilibili.apiMapper.annotation.FieldPath;
import com.sk.bilibili.bean.interfaces.PlayAble;
import com.sk.bilibili.other.ExtraMap;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;
/**
* @author 邵康
* @date 2021/11/26 09:55
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Live implements PlayAble {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer memberId;
    private String title;
    private String announcement;
    @DefaultValue("default/liveCover.png")
    private String cover;
    @TableField(exist = false)
    private MultipartFile coverFile;
    private String url;
    private Integer liveTypeId;
    private Integer playNum;
    @DefaultValue("default/liveBg.jpg")
    private String bg;
    @TableField(exist = false)
    private MultipartFile bgFile;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateDate;
    @TableField(exist = false)
    private ExtraMap extra=new ExtraMap();//携带用户  类型信息

}
